import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
    mode: "hash",
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes:[
        {
            path: '/',
            name: '默认路径',
            redirect: '/startUp',
            component: () => import('../views/HomeView.vue'),
            children:[
                {
                    path: '/startUp',
                    name: '一键启动',
                    component: () => import('../views/StartUp.vue')
                },
                {
                    path: '/category',
                    name: '笔记管理',
                    component: () => import('../views/Category.vue')
                },
                {
                    path: '/navigation',
                    name: '导航管理',
                    component: () => import('../views/Navigation.vue')
                },
                {
                    path: '/logging',
                    name: '日志',
                    component: () => import('../views/Logging.vue')
                },
                {
                    path: '/setting',
                    name: '设置',
                    component: () => import('../views/Setting.vue')
                },
                
            ]
        }
    ]
})

export default router